 <c:set var='view' value='/subcategory' scope='session' />
  <!-- BEGIN CONTENT -->
  <div id="main">
    <div id="categorycontent" >
      <!-- BEGIN TITLE -->
      <div id="titleExt">
        <h5 class="lefte"> <a href="<c:url value='/category?${parent.idtypeProduit}'/>"> ${parent.typeProduit} </a> &gt;&gt;
        ${typeProduit.typeProduit}</h5>
        <!--<div class="right">View display <span>1</span> of 10 pages</div>-->
        <div class="sp"></div>
      </div>
      <c:if test="${empty listProduitsEtDescrip}">
          <fmt:message key='prodNot'/>
          <br>
          <br><input type="button" value="Retour" onclick="location.href='javascript:window.history.back();'"><!--a href="javascript:window.history.back();">Retour</a-->
      </c:if>
      <c:if test="${not empty listProduitsEtDescrip}">
          <!-- BEGIN PRODUCTS -->
          <ul class="categoryproducts">

              <c:forEach var="product" items="${listProduitsEtDescrip}" varStatus="iter">
              ${(((iter.index+1) % 3) == 0) ? '<li class="last">' : '<li>'}
                      <a HREF="<c:url value='/product?${product.produit.idproduit}'/>" class="image"><img SRC="${initParam.productImagePath}${product.produit.image}" border="0" alt="image" width="250" height="182"/></a>
                      <div class="price">${product.produit.prix} &#8364; 
                          <c:if test="${product.produit.remise != 0 }">
                              (${product.produit.remise}% <fmt:message key='dereduction'/>)
                          </c:if>
                          <form name="frm_registrar" id="frm_registrar" action="<c:url value='/addcart'/>" method="post">
                             <label for="inputtext1"><fmt:message key='quantity'/>:</label>
                             <input id="inputtext1" size="1" maxlength="3" style="text-align:center" type="text" name="quantity" value="1" onkeyup="this.value=validarSiNumero(this.value)"/>
                             <input type="hidden" name="productid" value="${product.produit.idproduit}">
                             <input type="hidden" name="page" value="/subcategory">
                             <input type="image"  src="data/icones/panier.jpg" name="inputsubmit1" align="right" value="<fmt:message key='ajouter'/>" />
                          </form>
                      </div>
                      <h3 class="name">
                          <a HREF="<c:url value='/product?${product.produit.idproduit}'/>">${product.description.descriptionBref}</a>
                      </h3>
                  </li>
              </c:forEach>
          </ul>
      </c:if>
      <div class="sp"></div>
    </div>
    <!-- END CONTENT -->
    <div class="sp"></div>
    <!--<div id="gopages"><a href="#" class="prev"><img SRC="css/images/gpPrev.jpg" alt="prev" border="0" /></a><span> <a href="#" class="current">1</a> | <a href="#">2</a> | <a href="#">3</a>...</span><a href="#" class="next"><img SRC="css/images/gpNext.jpg" alt="next" border="0" /></a></div>-->
  </div>
  <div class="sp"></div>
</div>
